package cn.edu.njfu.controller;

import cn.edu.service.UserService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {
    @Reference
    private UserService userService;

    @GetMapping("hello")
    public String hello(String name){
        String s = userService.sayHello(name);
        return "hello"+s;
    }
}
